package uy.com.csi.gestpro.model.proyecto;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the gp_prsnal_obra database table.
 * 
 */
@Entity
@Table(name="gp_prsnal_obra", schema="proyecto")
@NamedQuery(name="GpPrsnalObra.findAll", query="SELECT g FROM GpPrsnalObra g")
public class GpPrsnalObra implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	@Column(name="id_crgo")
	private Integer idCrgo;

	@Column(name="id_prsnal")
	private Integer idPrsnal;

	//bi-directional many-to-one association to GpInfrmeDrio
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="id_infrme_drio")
	private GpInfrmeDrio gpInfrmeDrio;

	public GpPrsnalObra() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getIdCrgo() {
		return this.idCrgo;
	}

	public void setIdCrgo(Integer idCrgo) {
		this.idCrgo = idCrgo;
	}

	public Integer getIdPrsnal() {
		return this.idPrsnal;
	}

	public void setIdPrsnal(Integer idPrsnal) {
		this.idPrsnal = idPrsnal;
	}

	public GpInfrmeDrio getGpInfrmeDrio() {
		return this.gpInfrmeDrio;
	}

	public void setGpInfrmeDrio(GpInfrmeDrio gpInfrmeDrio) {
		this.gpInfrmeDrio = gpInfrmeDrio;
	}

}